import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
    {
        path:'/',
        redirect:'/class'
    },
    {
        path: '/class',
        name: 'class',
        component: () => import('../components/Class.vue')
    },
    {
        path: '/history',
        name: 'history',
        component: () => import('../components/History.vue')
    },
    {
        path: '/seat',
        name: 'seat',
        component: () => import('../components/Seat.vue')
    },
    {
        path: '/user',
        name: 'user',
        component: () => import('../components/User.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../components/Login.vue')
    },
    {
        path: '/feedBack',
        name: 'feedBack',
        component: () => import('../components/FeedBack.vue')
    },
    {
        path: '/inbox',
        name: 'inbox',
        component: () => import('../components/InBox.vue')
    },
]
const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
